package com.ythook.mentor.repository;

import com.ythook.mentor.entity.Technologies;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

@Repository
public interface TechnologiesRepository extends JpaRepository<Technologies,Long> {
    @Query(value = "select t from Technologies t where t.name like ?1")
    List<Technologies> findByName(String name);
}
